<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/components/APP/Device/Main/Page.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\..\..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\..\..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\..\..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\..\..\..\index.html">All files</a> / <a href="index.html">src/components/APP/Device/Main</a> Page.vue
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/19</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/6</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/9</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/19</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
  &lt;div o-Container o-Container-App&gt;
    &lt;van-nav-bar title="设备" left-arrow @click-left="onClickLeft" v-bind="{fixed:true}"/&gt;
    &lt;div class="content"&gt;
      &lt;div class="containerMask"&gt;&lt;/div&gt;
      &lt;div class="title"&gt;设备报警&lt;/div&gt;
      &lt;van-row class="group message" to="/APP/Main/Home/List"&gt;
        &lt;van-col span="6" class="node" v-on:click="octopus.router.jump('/APP/Device/Main/List')"&gt;
          &lt;span class="follow"&gt;关注&lt;/span&gt;
        &lt;/van-col&gt;
        &lt;van-col span="6" class="node" v-on:click="octopus.router.jump('/APP/Device/Main/List')"&gt;
          &lt;span class="warning"&gt;预警&lt;/span&gt;
        &lt;/van-col&gt;
        &lt;van-col span="6" class="node" v-on:click="octopus.router.jump('/APP/Device/Main/List')"&gt;
          &lt;span class="alarm"&gt;告警&lt;/span&gt;
        &lt;/van-col&gt;
        &lt;van-col span="6" class="node" v-on:click="octopus.router.jump('/APP/Device/Main/List')"&gt;
          &lt;span class="offline"&gt;离线&lt;/span&gt;
        &lt;/van-col&gt;
      &lt;/van-row&gt;
      &lt;div class="title"&gt;子系统&lt;/div&gt;
      &lt;van-row class="group"&gt;
        &lt;van-col class="node" v-for="system in list.system.data.queryData" span="6" v-bind:key="system.ID"
                 v-on:click="octopus.router.jump(system.Url)"&gt;
          &lt;!--        v-on:click="octopus.router.jump(system.Url)"--&gt;
          &lt;div class="icon" v-bind="{class:system.Icon,style:{background:system.IconColor}}"&gt;&lt;/div&gt;
          &lt;div class="text"&gt;
            {{system[octopus.passport.language]}}
          &lt;/div&gt;
        &lt;/van-col&gt;
      &lt;/van-row&gt;
      &lt;div class="title"&gt;设备分类&lt;/div&gt;
      &lt;van-row class="group" v-if="list.sensorType.data.content"&gt;
        &lt;van-col class="node" v-for="sType in list.sensorType.data.content.queryData" span="6" v-bind:key="sType.ID"
                 v-on:click="octopus.router.jump('/APP/Device/Main/List?typeId='+sType.ID)"&gt;
          &lt;div class="icon" v-bind="{class:sType.Icon,style:{background:sType.IconColor}}"&gt;&lt;/div&gt;
          &lt;div class="text"&gt;
            {{sType.Name}}
          &lt;/div&gt;
        &lt;/van-col&gt;
      &lt;/van-row&gt;
    &lt;/div&gt;
    &lt;o-app-menu&gt;&lt;/o-app-menu&gt;
  &lt;/div&gt;
&lt;/template&gt;
&nbsp;
&lt;script&gt;
  export default {
    name: "mms_engine_database_item", /* 这个name暂时不知道用啥用，根据官方文档说的是方便排错的 */
<span class="fstat-no" title="function not covered" >    data() {</span>
<span class="cstat-no" title="statement not covered" >      return {</span>
        octopus: this.$parent.octopus,
        list: {
          sensorType: {
            data: {
              id: 66, // 菜单表的八爪鱼ID
              cellData: [
                {name: "ID"},
                {name: "Name"},
                {name: "Icon"},
                {name: "IconColor"},
              ],
            }
          },
          system: {
            data: {
              id: 71, // 菜单表的八爪鱼ID
              cellData: [
                {name: "ID"},
                {name: "Name"},
                {name: "Icon"},
                {name: "IconColor"},
              ],
            }
          },
        },
      }
    },
<span class="fstat-no" title="function not covered" >    activated: function () {</span>
<span class="cstat-no" title="statement not covered" >        this.load();</span>
<span class="cstat-no" title="statement not covered" >        this.Load();</span>
    },
    methods: {
<span class="fstat-no" title="function not covered" >        click: function (param) {</span>
<span class="cstat-no" title="statement not covered" >            console.log(param);</span>
        },
<span class="fstat-no" title="function not covered" >        onClickLeft() {</span>
<span class="cstat-no" title="statement not covered" >            this.octopus.router.jump('/APP/Main/Home/Page')</span>
        },
<span class="fstat-no" title="function not covered" >        load: function () {</span>
<span class="cstat-no" title="statement not covered" >          let o = this;</span>
          // 获取传感器系统表数据
<span class="cstat-no" title="statement not covered" >          this.octopus.request.api.post("/Octopus/Engine/List", this.list.system.data,</span>
            // 处理回调事件，通过分析data.status.code的状态来实现。
<span class="fstat-no" title="function not covered" >            function (data) {</span>
<span class="cstat-no" title="statement not covered" >              if (data.status.code == 200) {</span>
<span class="cstat-no" title="statement not covered" >                o.$set(o.list.system, "data", data);</span>
              }
            });
&nbsp;
          // 获取传感器场景表数据
<span class="cstat-no" title="statement not covered" >          this.octopus.request.api.post("/Octopus/Engine/List", this.list.sensorType.data,</span>
            // 处理回调事件，通过分析data.status.code的状态来实现。
<span class="fstat-no" title="function not covered" >            function (data) {</span>
<span class="cstat-no" title="statement not covered" >              if (data.status.code == 200) {</span>
<span class="cstat-no" title="statement not covered" >                o.$set(o.list.sensorType, "data", data);</span>
<span class="cstat-no" title="statement not covered" >                console.log('测试', data);</span>
              }
            });
        },
<span class="fstat-no" title="function not covered" >        Load: function () {</span>
<span class="cstat-no" title="statement not covered" >            let o = this;</span>
            // 获取子系统数据（带权限）
<span class="cstat-no" title="statement not covered" >            this.octopus.request.api.post("/Octopus/Engine/List", {</span>
                    id: 13, // 菜单表的八爪鱼ID,子系统
                    cellData: [
                        // {name: "ID"},
                        {name: "ParentID", filterKey: "=", filterValue: 81},
                        {name: this.octopus.passport.language},
                        {name: "Url"},
                        {name: "Icon"},
                        {name: "IconColor"},
                    ],
                },
                // 处理回调事件，通过分析data.status.code的状态来实现。
<span class="fstat-no" title="function not covered" >                function (data) {</span>
<span class="cstat-no" title="statement not covered" >                    if (data.status.code == 200) {</span>
<span class="cstat-no" title="statement not covered" >                        o.$set(o.list.system, "data", data.content);</span>
                    }
<span class="cstat-no" title="statement not covered" >                    console.log("======"+JSON.stringify( data.content));</span>
                });
&nbsp;
            // 获取配套模块数据（带权限）
<span class="cstat-no" title="statement not covered" >            this.octopus.request.api.post("/Octopus/Engine/List", {</span>
                    id: 13, // 菜单表的八爪鱼ID,子系统
                    cellData: [
                        // {name: "ID", filterKey: "IN", filterValue: [161, 95, 83, 166, 167,123]},// 消息，能耗，设备，工单，巡检，报表
                        {name: "ParentID", filterKey: "=", filterValue: 152},
                        {name: this.octopus.passport.language},
                        {name: "Url"},
                        {name: "Icon"},
                        {name: "IconColor"},
                    ],
                },)
        },
    },
    props: ["oData"]
  }
&lt;/script&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Jan 20 2020 17:54:15 GMT+0800 (GMT+08:00)
</div>
</div>
<script src="..\..\..\..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\..\..\..\sorter.js"></script>
</body>
</html>
